const morgan = require("morgan");
const fs = require("fs");
const path = require("path");

module.exports = (app) => {
    app.use(
        morgan("combined", {
            stream: fs.createWriteStream(
                path.join(__dirname, "../../logs/access.log"),
                {
                    flags: "a"
                }
            )
        })
    );
};
